package com.online.questionnaire.service;

import com.online.questionnaire.model.SurveySubmit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.online.questionnaire.model.dto.AnswerSheet;
import com.online.questionnaire.model.dto.SubmitSurveyDTO;
import com.online.questionnaire.model.dto.SurveysDTO;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author 27701
* @description 针对表【survey_submit(提交记录 可查看每次提交详情)】的数据库操作Service
* @createDate 2025-02-22 23:42:17
*/
public interface SurveySubmitService extends IService<SurveySubmit> {

    /**
     * 提交答卷
     * @param submitSurveyDTO
     * @param request
     * @return
     */
    boolean submitAnswer(SubmitSurveyDTO submitSurveyDTO, HttpServletRequest request);

    Long getSubmitNum(Long surveyId);

    /**
     * 获取单张答卷
     * @param submitId
     * @return
     */
    AnswerSheet getAnswerSheet(Long submitId);

    SurveysDTO getSurveysDTOAnswer(Long submitId);
}
